package com.dragon.pojo.Record;

import com.dragon.pojo.Problem.JudgeInfo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class RecordInfo {
    private Integer problemId;

    private Integer userId;

    private String problemTitle;

    private String username;

    private String avatar;

    private Integer completeStatus;

    private Integer score;

    private long time;

    private long memory;

    private long fileSize;

    private String sourceCode;

    private String language;

    private String codePath;

    private List<JudgeInfo> pointList;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
